import request from 'utils/request'

export function getSortList() {
    return request({
        url: '/sort/list',
        method: 'get',
    })
}

export function addSort(data) {
    return request({
        url: '/sort/add',
        method: 'post',
        data
    })
}

export function updateSort(data) {
    return request({
        url: '/sort/update',
        method: 'post',
        data
    })
}

export function deleteSortById(id) {
    return request({
        url: '/sort/delete?id=' + id,
        method: 'get'
    })
}

export function uploadImg(data) {
    return request({
        url: '/upload/img',
        method: 'post',
        data
    })
}